package com.hqyj.erpserver.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HQYJ
 * @since 2021-10-21
 */
@ApiModel
public class Warehouse extends Model<Warehouse> {

    private static final long serialVersionUID = 1L;

    /**
     * 仓库编号
     */
    @TableId(value = "wh_id", type = IdType.AUTO)
    @ApiModelProperty("仓库编号，主键")
    private Integer whId;

    /**
     * 仓库名称
     */
    @ApiModelProperty("仓库名称")
    private String whName;

    /**
     * 利润中心编号
     */
    @ApiModelProperty("利润中心")
    private Integer pcId;

    /**
     * 仓库地址
     */
    @ApiModelProperty("仓库地址")
    private String whAddr;

    /**
     * 仓库容量，单位立方
     */
    @ApiModelProperty("仓库容量")
    private Integer whCapacity;

    /**
     * 仓库备注
     */
    @ApiModelProperty("仓库备注")
    private String whDesc;


    public Integer getWhId() {
        return whId;
    }

    public void setWhId(Integer whId) {
        this.whId = whId;
    }

    public String getWhName() {
        return whName;
    }

    public void setWhName(String whName) {
        this.whName = whName;
    }

    public Integer getPcId() {
        return pcId;
    }

    public void setPcId(Integer pcId) {
        this.pcId = pcId;
    }

    public String getWhAddr() {
        return whAddr;
    }

    public void setWhAddr(String whAddr) {
        this.whAddr = whAddr;
    }

    public Integer getWhCapacity() {
        return whCapacity;
    }

    public void setWhCapacity(Integer whCapacity) {
        this.whCapacity = whCapacity;
    }

    public String getWhDesc() {
        return whDesc;
    }

    public void setWhDesc(String whDesc) {
        this.whDesc = whDesc;
    }

    @Override
    protected Serializable pkVal() {
        return this.whId;
    }

    @Override
    public String toString() {
        return "Warehouse{" +
        "whId=" + whId +
        ", whName=" + whName +
        ", pcId=" + pcId +
        ", whAddr=" + whAddr +
        ", whCapacity=" + whCapacity +
        ", whDesc=" + whDesc +
        "}";
    }
}
